package site.kitcheng.springboottest.api.controller.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * ClassName: UserDto
 * Package: site.kitcheng.springboottest.api.controller.dto
 * Description:
 *
 * @Author jiangCheng
 * @Create 2025/2/25 14:35
 * @Version 1.0
 */
@Data
public class UserDto {


    private Long id;

    private String UserName;

    private String email;

    private String code;

    private String codeUuid;


    private String password;


    private String realName;

    private String phone;


    private String imageUrl;

    private String language;


    @ApiModelProperty(value = "上一次登陆时间")
    private LocalDateTime lastLoginAt;

    @ApiModelProperty(value = "最后登录IP")
    private String loginIp;

    @ApiModelProperty(value = "用户是否启用。1启用，0未启用")
    private Integer isEnabled;

    @ApiModelProperty(value = "是否锁定账户")
    private Integer isLocked;

    @ApiModelProperty(value = "是否是LDAP来源。1是，0不是")
    private Integer isLdap;

    @ApiModelProperty(value = "是否为管理员用户。1表示是，0表示不是")
    private Integer isAdmin;

    @ApiModelProperty(value = "锁定账户截止时间")
    private LocalDateTime lockedUntilAt;


    @ApiModelProperty(value = "uuid，主要用于ldap同步")
    private String uuid;

    @ApiModelProperty(value = "快速索引")
    private String quickIndex;
}
